package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastPicture implements Serializable {
    private Integer id;

    /**
     * 图片路径
     */
    private String imgpath;

    /**
     * 简介
     */
    private String introduction;

    /**
     * 類型ID
     */
    private Integer typeid;

    /**
     * 类型名称
     */
    private String typename;

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    /**
     * 是否启用（0、是，1、否）
     */
    private Integer isenable;

    /**
     * 是否删除（0、是，1、否）
     */
    private Integer isdelete;

    /**
     * 排序（）
     */
    private Integer sort;

    /**
     * 上传时间
     */
    private Date createtime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastPicture withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgpath() {
        return imgpath;
    }

    public RunfastPicture withImgpath(String imgpath) {
        this.setImgpath(imgpath);
        return this;
    }

    public void setImgpath(String imgpath) {
        this.imgpath = imgpath == null ? null : imgpath.trim();
    }

    public String getIntroduction() {
        return introduction;
    }

    public RunfastPicture withIntroduction(String introduction) {
        this.setIntroduction(introduction);
        return this;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction == null ? null : introduction.trim();
    }

    public Integer getTypeid() {
        return typeid;
    }

    public RunfastPicture withTypeid(Integer typeid) {
        this.setTypeid(typeid);
        return this;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Integer getIsenable() {
        return isenable;
    }

    public RunfastPicture withIsenable(Integer isenable) {
        this.setIsenable(isenable);
        return this;
    }

    public void setIsenable(Integer isenable) {
        this.isenable = isenable;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public RunfastPicture withIsdelete(Integer isdelete) {
        this.setIsdelete(isdelete);
        return this;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public Integer getSort() {
        return sort;
    }

    public RunfastPicture withSort(Integer sort) {
        this.setSort(sort);
        return this;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastPicture withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", imgpath=").append(imgpath);
        sb.append(", introduction=").append(introduction);
        sb.append(", typeid=").append(typeid);
        sb.append(", isenable=").append(isenable);
        sb.append(", isdelete=").append(isdelete);
        sb.append(", sort=").append(sort);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}